package com.szrt.banji09.maven_project03.day1025.crm.base.service.impl;

import com.szrt.banji09.maven_project03.day1025.crm.base.dao.BaseDao;
import com.szrt.banji09.maven_project03.day1025.crm.base.dao.impl.BaseDaoImpl;
import com.szrt.banji09.maven_project03.day1025.crm.base.service.BaseService;

public class BaseServiceImpl<T> implements BaseService<T>{
	
	//Service 想调用Dao层， 把Dao作为Service1个属性  此时关系建立成功
	private BaseDao<T> dao=new BaseDaoImpl<T>();
	@Override
	public int add(T entity) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int delete(int id) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int update(T entity) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public T findById(int id) {
		// TODO Auto-generated method stub
		return null;
	}
	
}
